package com.demo2do.fms.appointment.dao;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.report.DriverMileageAppointment;
import com.demo2do.fms.entity.report.AppointmentStatus;

/**
 *
 * @author Ark
 *
 */
@Dao("hibernate")
public interface DriverMileageAppointmentDao {

    /**
     * @param status
     * @return
     */
    @Query("FROM DriverMileageAppointment WHERE disabled = false AND status = :status")
    public List<DriverMileageAppointment> list(@Variable("status") AppointmentStatus status);
    
}
